@Override
public HttpResponse fetch(HttpRequest request) throws GadgetException {
String container = request.getContainer();
ContainerExtPoint extpt = manager.getExtPoint(container);
if(extpt != null) {
OpenSocialContainerConfig config = extpt.getContainerConfig();
Object allowedObj = config.getProperties().get(
OpenSocialContainerConfig.ALLOW_UNTRUSTED_SSL_CONNECTIONS);
if(allowedObj instanceof Boolean) {
Boolean allowed = (Boolean)allowedObj;
if(allowed) {
return makeUnsecureFetch(request);