private static function loadSerializationPolicy($moduleBaseURL, $strongName)
 {
     // The request can tell you the path of the web app relative to the
     // container root
     $contextPath = parse_url($_SERVER['SCRIPT_NAME'], PHP_URL_PATH);
     if (!is_null($moduleBaseURL)) {
         $modulePath = parse_url($moduleBaseURL, PHP_URL_PATH);
     }
     /*
      * Check that the module path must be in the same web app as the servlet
      * itself. If you need to implement a scheme different than this, override
      * this method.
      */
     if (empty($modulePath) || mb_strpos($modulePath, $contextPath) != 0) {
         $message = 'ERROR: The module path requested, ' . $modulePath . ', is not in the same web application as this servlet, ' . $contextPath . '. Your module may not be properly configured or your client and server code maybe out of date.';
         echo $message;
     } else {
         // Strip off the context path from module base URL. It should be
         // strict prefix
         //$contextRelativePath = mb_substr($modulePath, mb_strlen($contextPath));
         $contextRelativePath = GWT::getModuleBasePath();
         $serializationPolicyFilePath = SerializationPolicyLoader::getSerializationPolicyFileName($contextRelativePath . $strongName);
         // Open the RPC resource file and read its content
         try {
             $serializationPolicy = SerializationPolicyLoader::loadFromFile($serializationPolicyFilePath);
         } catch (ParseException $e) {
             echo "ERROR: Failed to parse the policy file '{$serializationPolicyFilePath}'", $e;
         }
         return $serializationPolicy;
     }
 }
 protected function findClientOracleData($requestModuleBasePath, $permutationStrongName)
 {
     //$resourcePath = $requestModuleBasePath . $permutationStrongName . self::CLIENT_ORACLE_EXTENSION;
     $resourcePath = GWT::getModuleBasePath() . $permutationStrongName . self::CLIENT_ORACLE_EXTENSION;
     return file_get_contents($resourcePath);
 }