@Override
public NumberMetadataValue createValue(Object o) throws Descriptor.FormException {
MetadataChecks checks = new MetadataChecks();
long value;
if (o instanceof String) {
FormValidation formValidation = checks.doCheckNumberValue((String)o);
if (!formValidation.equals(FormValidation.ok())) {
throw new Descriptor.FormException(formValidation.getMessage(), "");
}
value = Long.parseLong((String)o);
} else {