Object handleAsInternalWPS(ProcessParameterIO ppio, InputReferenceType ref) throws Exception {
ExecuteType request = null;
if (ref.getMethod() == MethodType.POST_LITERAL) {
request = (ExecuteType) ref.getBody();
} else {
ExecuteKvpRequestReader reader = (ExecuteKvpRequestReader) context.getBean("executeKvpRequestReader");
request = (ExecuteType) kvpParse(ref.getHref(), reader);
}
Map<String, ProcessOutput> results = executeInternal(request);
Object obj = results.values().iterator().next().object;