fitgoodies-core/src/main/java/de/cologneintelligence/fitgoodies/typehandler/TypeHandlerFactory.java
public TypeHandler getHandler(Class<?> type, String parameter) {
		if (type == null) {
			return null;
		} else if (type.isArray()) {
			return new ArrayTypeHandler(parameter, getHandler(type.getComponentType(), parameter));
		} else if (adapters.containsKey(type)) {
			return instantiate(adapters.get(type), parameter);
		} else {
			throw new IllegalArgumentException("Unknown type: " + type.getName());
		}
	}
public TypeHandler getHandler(Class<?> type, String parameter) {
		if (type == null) {
			return null;
		} else if (type.isArray()) {
			return new ArrayTypeHandler(parameter, getHandler(type.getComponentType(), parameter));
		} else if (adapters.containsKey(type)) {
			return instantiate(adapters.get(type), parameter);
		} else {
			throw new IllegalArgumentException("Unknown type: " + type.getName());
		}
	}
Instantiates a new {@code TypeAdapter} which is capable of handling
{@code type}.
<p>
If no such adapter exists, the old one is returned.

@param type      {@code Class} to process
@param parameter Column/row parameter
@return an instance of {@code TypeAdapter}, either a specialized one,
or {@code typeAdapter} itself.