Upgraded the plug-in to support the alfresco version 4.x and 5.x.