private void constructQueryVariableContext(String name, boolean queryParam, String parameterDetail, boolean mandatory, Class type, SubResource subResource ) {
if(queryParam) {
QueryVariableMetaData queryVariableMetaData = new QueryVariableMetaData(name, mandatory, type.getSimpleName(), parameterDetail);
subResource.addQueryVariableMetaData(queryVariableMetaData);
}
}