CMS-4067 Implement libraries as Java classes.