private void constructHeaderVariableContext(String name, boolean headerParam, String parameterDetail, boolean mandatory, Class type, SubResource subResource ) {
if(headerParam) {
HeaderVariableMetaData headerVariableMetaData = new HeaderVariableMetaData(name, mandatory, type.getSimpleName(), parameterDetail);
subResource.addHeaderVariableMetaData(headerVariableMetaData);
}
}