private KieContainer getContainer(RulePolicyRepresentation policy) { final String groupId = policy.getArtifactGroupId(); final String artifactId = policy.getArtifactId(); final String version = policy.getArtifactVersion(); try { return this.factory.getKieContainer(groupId, artifactId, version); } catch (RuntimeException re) { throw new WebApplicationException(ErrorResponse.error( "Unable to locate artifact " + groupId + ":" + artifactId + ":" + version, Response.Status.BAD_REQUEST)); } } }