getColor is removed in maxwell 3 SDK so changed it over to getAttribute