I came across this problem that I without knowing the actual enum
type I need to iterate its possible values.
if (value instanceof Enum){
Enum enumValue = (Enum)value;
}
Any ideas how to extract from enumValue its possible values ?
Object[] possibleValues = enumValue.getDeclaringClass().getEnumConstants();