/**
  * create a new resource identifier with the URL parts from the passed properties.
  *
  * @param \AppserverIo\Properties\PropertiesInterface $properties The configuration properties
  *
  * @return \AppserverIo\Psr\Naming\EnterpriseBeanResourceIdentifier The initialized instance
  */
 public static function createFromProperties(PropertiesInterface $properties)
 {
     return new EnterpriseBeanResourceIdentifier($properties->toIndexedArray());
 }
 /**
  * Prepares the system properties for the actual mode.
  *
  * @param \AppserverIo\Properties\PropertiesInterface $properties The properties to prepare
  * @param string                                      $webappPath The path of the web application to prepare the properties with
  *
  * @return void
  */
 protected function prepareSystemProperties(PropertiesInterface $properties, $webappPath)
 {
     // append the application specific properties and replace the properties
     $properties->add(SystemPropertyKeys::WEBAPP, $webappPath);
     $properties->add(SystemPropertyKeys::WEBAPP_NAME, basename($webappPath));
 }
 /**
  * Replaces the variables declared in the properties with the
  * properties value itself.
  *
  * @param \AppserverIo\Properties\PropertiesInterface $properties The properties with the variables/values to replace
  * @param string                                      $pattern    The pattern that declares the variables (in valid sprintf format)
  *
  * @return void
  */
 public function replaceProperties(PropertiesInterface $properties, $pattern = PropertyStreamFilterParams::PATTERN)
 {
     foreach ($properties as $key => $value) {
         $properties->setProperty($key, $this->replacePropertiesInString($properties, $value));
     }
 }