&& value.getClass().getComponentType().getName().equals("float")) {
value = ArrayUtils.toObject((float[]) value);
} else {
try {
if (param.getType().equals(ConfigurationParameter.TYPE_STRING)) {
SimpleTypeConverter converter = new SimpleTypeConverter();
PropertyEditorUtil.registerUimaFITEditors(converter);
if (value.getClass().isArray() || value instanceof Collection) {
value = converter.convertIfNecessary(value, String[].class);
} else {
value = converter.convertIfNecessary(value, String.class);
}
}
} catch (TypeMismatchException e) {
throw new IllegalArgumentException(e.getMessage(), e);
}