public ManagedOperation getManagedOperation(Method method) {
return method.getAnnotation(ManagedOperation.class);
}
public ManagedOperationParameter[] getManagedOperationParameters(Method method) {
ManagedOperationParameters params = method.getAnnotation(ManagedOperationParameters.class);
ManagedOperationParameter[] result = null;
if (params == null) {
result = new ManagedOperationParameter[0];
} else {
result = params.value();
}
return result;
}