* @see org.apache.lenya.workflow.Workflowable#getVersions()
*/
public Version[] getVersions() {
if (this.versions == null) {
try {
LenyaMetaData meta = this.document.getMetaDataManager().getLenyaMetaData();
String[] versionStrings = meta.getValues(LenyaMetaData.ELEMENT_WORKFLOW_VERSION);
this.versions = new Version[versionStrings.length];
for (int i = 0; i < versionStrings.length; i++) {
String string = versionStrings[i];
int spaceIndex = string.indexOf(" ");
String numberString = string.substring(0, spaceIndex);