try {
Object o = HproseHelper.getEnumConstants.invoke(type, nullArgs);
return Array.get(o, value);
}
catch (IllegalAccessException e) {
throw new HproseException(e.getMessage());
}
catch (IllegalArgumentException e) {
throw new HproseException(e.getMessage());
}
catch (InvocationTargetException e) {
throw new HproseException(e.getMessage());
}
}