class SetStatementValidator {

    private static String trimUpdate(final String setter) {
        final int lastIndexOfUpdate = setter.lastIndexOf(";update(");

        if (lastIndexOfUpdate >= 0) {
            return setter.substring(0, lastIndexOfUpdate);
        } else {
            return setter;
        }
    }

    private  SetStatementValidator();

}