Debug code removed. getEntitylist still not working