{
final List<RepositoryFileTreeDto> children = getChildren(name);
final String[] childrenArray = new String[children.size()];
for (int i = 0; i < children.size(); i++)
{
final RepositoryFileTreeDto repositoryFileTreeDto = children.get(i);
if (repositoryFileTreeDto == null)
{
continue;
}
final RepositoryFileDto file = repositoryFileTreeDto.getFile();
if (file == null)
{
throw new FileSystemException(BI_SERVER_NULL_OBJECT);
}
childrenArray[i] = file.getName().replaceAll("\\%", "%25").replaceAll("\\!", "%21").replaceAll("\\+", "%2B");