class FieldImplFactory {

    public Field createSimpleField(final String name, final DataType type) {
        if (DataType.CHARACTER.equals(type))
            throw new IllegalArgumentException("Use createCharacterField(String, int) to create character fields.");

        return new PrimitiveFieldImpl(name, type);
    }

}