Some code for converting OpenLayers layer objects to ArcGIS JS API objects.