code: public static void setSchemaAndPersistenceUnit(EntityMetadata m, String schemaStr, Map puProperties)
      {
  
          if (schemaStr.indexOf(Constants.SCHEMA_PERSISTENCE_UNIT_SEPARATOR) > 0)
          {
              String schemaName = null;
              if (puProperties != null)
              {
                  schemaName = (String) puProperties.get(PersistenceProperties.KUNDERA_KEYSPACE);
              }
              if (schemaName == null)
              {
                  schemaName = schemaStr.substring(0, schemaStr.indexOf(Constants.SCHEMA_PERSISTENCE_UNIT_SEPARATOR));
              }
              m.setSchema(schemaName);
              m.setPersistenceUnit(schemaStr.substring(
                      schemaStr.indexOf(Constants.SCHEMA_PERSISTENCE_UNIT_SEPARATOR) + 1, schemaStr.length()));
          }
          else
          {
              m.setSchema(StringUtils.isBlank(schemaStr) ? null : schemaStr);
          }
      }
docs: Sets the schema and persistence unit.
  
  @param m
  the m
  @param schemaStr
  the schema str
  @param puProperties