public static AbstractDAO<String> createStateDAO(String scanServerName) {
if (scanServerName == null || scanServerName.isEmpty()) {
return null;
}
AbstractDAOFactory factory = DAOFactoryManager.getFactory(TANGO_FACTORY_CLASS);
TangoKey tangoKey = new TangoKey();
tangoKey.registerAttribute(scanServerName, "State");
if (factory != null) {
return factory.createStringDAO(tangoKey);
}
return null;
}