Buggy code:
private void createTables ( Session session , String keyspace ) { session . execute ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".user<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>login<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>password<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>username<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>firstname<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>lastname<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>domain<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>activated<seq2seq4repair_space>boolean,\n" ) + "<seq2seq4repair_space>avatar<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>jobTitle<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>activation_key<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>reset_key<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>phoneNumber<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>openIdUrl<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>preferences_mention_email<seq2seq4repair_space>boolean,\n" ) + "<seq2seq4repair_space>rssUid<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>weekly_digest_subscription<seq2seq4repair_space>boolean,\n" ) + "<seq2seq4repair_space>daily_digest_subscription<seq2seq4repair_space>boolean,\n" ) + "<seq2seq4repair_space>attachmentsSize<seq2seq4repair_space>bigint,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(login)\n" ) + ");" ) ) ; session . execute ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".status<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>statusId<seq2seq4repair_space>timeuuid,\n" ) + "<seq2seq4repair_space>type<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>login<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>username<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>domain<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>statusDate<seq2seq4repair_space>timestamp,\n" ) + "<seq2seq4repair_space>geoLocalization<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>removed<seq2seq4repair_space>boolean,\n" ) + "<seq2seq4repair_space>groupId<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>statusPrivate<seq2seq4repair_space>boolean,\n" ) + "<seq2seq4repair_space>hasAttachments<seq2seq4repair_space>boolean,\n" ) + "<seq2seq4repair_space>content<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>discussionId<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>replyTo<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>replyToUsername<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>detailsAvailable<seq2seq4repair_space>boolean,\n" ) + "<seq2seq4repair_space>originalStatusId<seq2seq4repair_space>timeuuid,\n" ) + "<seq2seq4repair_space>followerLogin<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(statusId)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".timeline<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>key<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>status<seq2seq4repair_space>timeuuid,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(key,status)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".domain<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>domainId<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>login<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>created<seq2seq4repair_space>timeuuid,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(domainId,<seq2seq4repair_space>login)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".counter<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>login<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>STATUS_COUNTER<seq2seq4repair_space>counter,\n" ) + "<seq2seq4repair_space>FOLLOWERS_COUNTER<seq2seq4repair_space>counter,\n" ) + "<seq2seq4repair_space>FRIENDS_COUNTER<seq2seq4repair_space>counter,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(login)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".friends<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>login<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>friendLogin<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(login,friendLogin)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".followers<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>key<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>login<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(key,login)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".dayline<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>domainDay<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>username<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>statusCount<seq2seq4repair_space>counter,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(domainDay,<seq2seq4repair_space>username)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".tagline<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>key<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>status<seq2seq4repair_space>timeuuid,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(key,<seq2seq4repair_space>status)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".userline<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>key<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>status<seq2seq4repair_space>timeuuid,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(key,<seq2seq4repair_space>status)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".shares<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>status<seq2seq4repair_space>timeuuid,\n" ) + "<seq2seq4repair_space>login<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(status,<seq2seq4repair_space>login)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".tagFollowers<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>key<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>login<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(key,<seq2seq4repair_space>login)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".favline<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>key<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>status<seq2seq4repair_space>timeuuid,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(key,<seq2seq4repair_space>status)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".domainline<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>key<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>status<seq2seq4repair_space>timeuuid,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(key,<seq2seq4repair_space>status)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".mentionline<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>key<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>status<seq2seq4repair_space>timeuuid,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(key,<seq2seq4repair_space>status)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".groupline<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>key<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>status<seq2seq4repair_space>timeuuid,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(key,<seq2seq4repair_space>status)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".group<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>id<seq2seq4repair_space>timeuuid,\n" ) + "<seq2seq4repair_space>domain<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>name<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>description<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>publicGroup<seq2seq4repair_space>boolean,\n" ) + "<seq2seq4repair_space>archivedGroup<seq2seq4repair_space>boolean,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(id,<seq2seq4repair_space>domain)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".userGroup<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>login<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>groupId<seq2seq4repair_space>timeuuid,\n" ) + "<seq2seq4repair_space>role<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(login,<seq2seq4repair_space>groupId)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".groupMember<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>groupId<seq2seq4repair_space>timeuuid,\n" ) + "<seq2seq4repair_space>login<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>role<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(groupId,<seq2seq4repair_space>login)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".userTags<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>login<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>friendLogin<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>time<seq2seq4repair_space>timestamp,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(login,<seq2seq4repair_space>friendLogin)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".trends<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>domain<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>id<seq2seq4repair_space>timeuuid,\n" ) + "<seq2seq4repair_space>tag<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(domain,<seq2seq4repair_space>id)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".userTrends<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>login<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>id<seq2seq4repair_space>timeuuid,\n" ) + "<seq2seq4repair_space>tag<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(login,<seq2seq4repair_space>id)\n" ) + ");\n" ) ) ; session . execute ( ( ( ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + keyspace ) + ".avatar<seq2seq4repair_space>(\n" ) + "<seq2seq4repair_space>id<seq2seq4repair_space>timeuuid,\n" ) + "<seq2seq4repair_space>filename<seq2seq4repair_space>varchar,\n" ) + "<seq2seq4repair_space>content<seq2seq4repair_space>blob,\n" ) + "<seq2seq4repair_space>size<seq2seq4repair_space>bigint,\n" ) + "<seq2seq4repair_space>creation_date<seq2seq4repair_space>timestamp,\n" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY(id)\n" ) + ");\n" ) ) ; <START_BUG> session . execute ( "CREATE<seq2seq4repair_space>INDEX<seq2seq4repair_space>ON<seq2seq4repair_space>avatar<seq2seq4repair_space>(filename);" ) ; <END_BUG>

Fix:
session . execute ( ( ( "CREATE<seq2seq4repair_space>INDEX<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>ON<seq2seq4repair_space>" + keyspace ) + ".avatar<seq2seq4repair_space>(filename);" ) ) ;