private void populateAttributeTypeValue(AttributeType attributeType, OpaAttribute input) { switch (input.getValueType()) { case _NUMBER: case _CURRENCY: attributeType.setNumberVal(new BigDecimal(input.getValue())); break; case _BOOLEAN: attributeType.setBooleanVal(new Boolean(input.getValue())); break; case _DATE: attributeType.setDateVal(populateDate(input)); break; case _TEXT: break; default: throw new RuntimeException("Unsupported AttributeType :" + input.getValueType()); } }