@SuppressWarnings("unchecked")
public ResultType getResult()
{
ObjectFactory objectFactory = new ObjectFactory();
ResultType resultType = objectFactory.createResultType();
ResponseCtx response = (ResponseCtx) map.get(XACMLConstants.RESPONSE_CTX);
if (response != null)
{
//Resource ID
Result result = (Result) response.getResults().iterator().next();
resultType.setResourceId(result.getResource());
//Decision
int decision = result.getDecision();
switch(decision)