public static <T> HashMap<String, String> resolveQueryPart(Request<T> request) {
HashMap<String, String> queryParts = new HashMap<String, String>();
Class<?> referenceClazz = request.getClass();
List<Field> fields = ClassUtil.getAnnotatedFields(referenceClazz, Query.class);
for (Field field : fields) {
Query query = field.getAnnotation(Query.class);
String key = query.value();
// in case the value() is null or empty: continue
if (key == null || (key != null && key.isEmpty())) {
continue;
}