Fixed deprecated API usage warnings in workspace  (#566)