class RecordFactory {

    public static Record create(final String name, final Structure structure) {
        if (name == null)
            throw new NullPointerException("Name must not be null");

        if (structure == null)
            throw new NullPointerException("Structure must not be null");

        return RECORD_FACTORY.createRootRecord(name, structure);
    }

}