String flatValue = getFlatValue();
String spec = DUMMY;
spec = spec.replaceAll( "#identifier#", getIdentifier() ); //$NON-NLS-1$
spec = spec.replaceAll( "#values#", flatValue ); //$NON-NLS-1$
ACIItemParser parser = new ACIItemParser( null );
UserFirstACIItem aci = null;
try
{
aci = ( UserFirstACIItem ) parser.parse( spec );
}
catch ( ParseException e )
{
String msg = NLS.bind(
Messages.getString( "UserClassWrapper.error.message" ), new String[] { getIdentifier(), flatValue } ); //$NON-NLS-1$
throw new ParseException( msg, 0 );
}
UserClass userClass = ( UserClass ) aci.getUserClasses().iterator().next();
return userClass;
}