public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
StackAdvisorRequest validationRequest = prepareStackAdvisorRequest(request);
final ValidationResponse response;
try {
<BUG>response = saHelper.validate(validationRequest);
} catch (StackAdvisorException e) {
LOG.warn("Error occured during component-layout validation", e);

throw new WebApplicationException(Response.status(Status.BAD_REQUEST).entity(e.getMessage())
</BUG>
.build());

public RequestStatus createResources(final Request request) throws SystemException,
UnsupportedPropertyException, ResourceAlreadyExistsException, NoSuchParentResourceException {
StackAdvisorRequest validationRequest = prepareStackAdvisorRequest(request);
final ValidationResponse response;
try {
response = saHelper.validate(validationRequest);
} catch (StackAdvisorRequestException e) {
LOG.warn("Error occurred during validation", e);
throw new WebApplicationException(Response.status(Status.BAD_REQUEST).entity(e.getMessage())
.build());
} catch (StackAdvisorException e) {
LOG.warn("Error occurred during validation", e);
throw new WebApplicationException(Response.status(Status.INTERNAL_SERVER_ERROR).entity(e.getMessage())
.build());
