Moved all the code in BasicPageResource into the try block added a constructor to the configuration to support the new immutable parent