public static void createDatabaseInfo(DatabaseInfo info, Database entity) {
    if (info == null || entity == null) {
      return;
    }
    info.setName(entity.getName());
    if (RSSManagerConstants.RSSManagerTypes.RM_TYPE_SYSTEM.equalsIgnoreCase(entity.getType())) {
      info.setRssInstanceName(RSSManagerConstants.RSSManagerTypes.RM_TYPE_SYSTEM);
    } else {
      info.setRssInstanceName(entity.getRssInstance().getName());
    }

    info.setType(entity.getType());
    info.setUrl(
        createDatabaseUrl(
            entity.getName(),
            entity.getRssInstance().getDbmsType(),
            entity.getRssInstance().getServerURL()));
  }
 public static void validateDatabaseInfo(Database database) throws RSSManagerException {
   checkIfParameterSecured(database.getName());
 }