static <T> void checkIndexProblem(Class<T> bean, QueryBean byKeyBean) {
if (byKeyBean.getSearchField() == null) {
StringBuilder erro = new StringBuilder();
erro.append("Some field in a class ").append(bean.getName());
erro.append(" should be a annotation: @org.easycassandra.annotations.Index ");
throw new IndexProblemException(erro.toString());
}
}