public static ParameterType getById(final Long id) { if (STRING.getId().equals(id)) { return STRING; } else if (LONG.getId().equals(id)) { return LONG; } else if (DATE.getId().equals(id)) { return DATE; } else if (DOUBLE.getId().equals(id)) { return DOUBLE; } else { throw new SpringBatchLightminApplicationException("Unknown ParameterType for id: " + id); } }