if (attr.getName().equals(ServerTags.NAME) &&
attr instanceof AttrString)
{
ConfigBean parent = valCtx.getParentBean();
if(parent instanceof J2eeApplication)
{
((AttrString)attr).setRegExpression(
"[\\p{L}\\p{N}_][\\p{L}\\p{N}\\-_./;]*#[\\p{L}\\p{N}_][\\p{L}\\p{N}\\-_./;]*");
}
else
{
((AttrString)attr).setRegExpression(
"[\\p{L}\\p{N}_][\\p{L}\\p{N}\\-_./;]*");
}
super.validateAttribute(ownerBean, attr, value, valCtx);
((AttrString)attr).setRegExpression(null);
}
else
super.validateAttribute(ownerBean, attr, value, valCtx);