byte[] data = dataString.getBytes( encoding );
ByteArrayInputStream dataStream = new ByteArrayInputStream( data );
final String mimeType = "text/plain";
final String fileName = "helloworld.xaction";
final SimpleRepositoryFileData content = new SimpleRepositoryFileData( dataStream, encoding, mimeType );
RepositoryFile newFile =
repo.createFile( parentFolder.getId(), new RepositoryFile.Builder( fileName ).build(), content, null );
final String filePath = parentFolderPath + RepositoryFile.SEPARATOR + fileName;
login( USERNAME_ADMIN, tenantAcme, new String[] { tenantAdminRoleName, tenantAuthenticatedRoleName } );