Look at NewFolderDialog it does the same but in simple way.

``` java
private IFolder createNewFolder(String folderName, final URI linkTarget)
```