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 );
ItemFirstACIItem aci = null;
try
{
aci = ( ItemFirstACIItem ) parser.parse( spec );
}
catch ( ParseException e )
{
String msg = NLS
.bind(
Messages.getString( "ProtectedItemWrapper.error.message" ), new String[] { getIdentifier(), flatValue } ); //$NON-NLS-1$
throw new ParseException( msg, 0 );
}
ProtectedItem item = ( ProtectedItem ) aci.getProtectedItems().iterator().next();
return item;
}