@SuppressWarnings({ "unchecked", "rawtypes" })
private <T>ValueType<T> getValueType(Surrogate surrogate, String name, boolean restricted, String scannerClassOrKeyword) throws T2DBException, SQLException {
Map<String, String> values = null;
if (restricted)
values = getValues(surrogate);
return new ValueTypeImpl(name, restricted, scannerClassOrKeyword, values, surrogate);
}