public String createDomain() {
        date = false;
        for ( Column col : table.getColumns() ) {
            writeColFields( col );
            getsSets.append( writeGet( col ) );
            getsSets.append( writeSet( col ) );

            if ( col.getFldType().equals( "Date" ) && date != true ) {
                date = true;
            }
        }
        writePackage();
        sb.append( "\n" );
        writeImport();
        skipLine();
        writeComment();
        sb.append( "\n" );
        writeClass();
        skipLine();

        sb.append( flds );
        sb.append( "\n" );
        sb.append( getsSets );

        sb.append( getProtectedJavaLines( filePath ) );
        writeToFile( filePath, sb.toString() );

        return filePath;
    }