List enginesList = DAOFactory.getEngineDAO().loadAllEngines();
List sdkEnginesList = new ArrayList();
if (enginesList != null && enginesList.size() > 0) {
for (Iterator it = enginesList.iterator(); it.hasNext();) {
Engine engine = (Engine) it.next();
SDKEngine sdkEngine = new SDKObjectsConverter().fromEngineToSDKEngine(engine);
sdkEnginesList.add(sdkEngine);
}
}
toReturn = new SDKEngine[sdkEnginesList.size()];
toReturn = (SDKEngine[]) sdkEnginesList.toArray(toReturn);