/**
  * Get singleton instance of class
  *
  * @return null|WPSWS_Settings
  */
 public static function get()
 {
     if (null === self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
 /**
  * Initialize class
  */
 private function init()
 {
     // Setup Rewrite Rules
     WPSWS_Rewrite_Rules::get();
     // Default webservice
     WPSWS_Webservice_get_posts::get();
     if (is_admin()) {
         // Backend
         // Setup settings
         WPSWS_Settings::get();
     } else {
         // Frondend
         // Catch request
         WPSWS_Catch_Request::get();
     }
 }