public void setWorking(Versionable versionable) throws DotDataException, DotStateException, DotSecurityException {
if(!UtilMethods.isSet(versionable) || !UtilMethods.isSet(versionable.getVersionId()))
throw new DotStateException("invalid identifier");
Identifier ident = APILocator.getIdentifierAPI().find(versionable);
if(ident.getAssetType().equals("contentlet")) {
Contentlet cont = (Contentlet)versionable;
ContentletVersionInfo info = vfac.getContentletVersionInfo(cont.getIdentifier(), cont.getLanguageId());
if(info ==null || !UtilMethods.isSet(info.getIdentifier())) {
// Not yet created
info = vfac.createContentletVersionInfo(ident, cont.getLanguageId(), versionable.getInode());
}
else {
info.setWorkingInode(versionable.getInode());
vfac.saveContentletVersionInfo(info, true);
}