/** * @return StorageProfile */ public static function getCurrentStorageProfile() { if (self::$currentStorageProfile) { return self::$currentStorageProfile; } self::$currentStorageProfile = StorageProfilePeer::retrieveByPK(self::getCurrentDcId()); return self::$currentStorageProfile; }