LRDOCS-565 Updated code for CE and added begin and end portlet versions.
LRDOCS-565 removed original code from root folder of alloy code.