if (tm == null) { throw new IllegalStateException("No TransactionManager found. This service dependencies must " + "have not been enforced correctly!"); }
   protected void startService() throws Exception   {      if (ds == null)      {         InitialContext ic = new InitialContext();         ds = (DataSource)ic.lookup(dataSourceJNDIName);         ic.close();      }            if (ds == null)      {         throw new IllegalStateException("No DataSource found. This service dependencies must " +         "have not been enforced correctly!");      }      if (tm == null)      {         throw new IllegalStateException("No TransactionManager found. This service dependencies must " +         "have not been enforced correctly!");      }            initSqlProperties();            if (createTablesOnStartup)      {         createSchema();      }            log.debug(this + " started");   }