private void handleMapNode(final StubHttpLifecycle stubHttpLifecycle, final Map.Entry<String, Object> parentNode) throws Exception {
final Map<String, Object> yamlProperties = (Map<String, Object>) parentNode.getValue();
if (parentNode.getKey().equals(YamlProperties.REQUEST)) {
final StubRequest targetStub = unmarshallYamlMapToTargetStub(yamlProperties, StubRequestBuilder.class);
stubHttpLifecycle.setRequest(targetStub);
ConsoleUtils.logUnmarshalledStubRequest(targetStub.getMethod(), targetStub.getUrl());
} else {
final StubResponse targetStub = unmarshallYamlMapToTargetStub(yamlProperties, StubResponseBuilder.class);
stubHttpLifecycle.setResponse(targetStub);
}