private static ParameterDescriptor []parameterDescriptors = new ParameterDescriptor[] {
new ParameterDescriptor(URI, new DefaultMessage("propertyQuery/uri"), new URIValueDescriptor())
};
public Result process(Map parameter, Context context) throws Exception {
ArrayValue properties = Projector.getRepository().getProperties((URIValue)parameter.get(URI), context.getCredentials());
if ( properties.getArray().length == 0 ) return new Result(EMPTY);
Result result= new Result(StateDescriptor.OK, ARRAY, properties);
Map properyMap = new HashMap();
for ( int i = 0; i < properties.getArray().length; i++ ) {
properyMap.put(((MapValue)properties.getArray()[i]).getMap().get("name").toString(), ((MapValue)properties.getArray()[i]).getMap().get("value"));
}
result.addResultEntry(MAP, new MapValue(properyMap));
return result;
}