Implemented support of single resources

Sometimes there is a need to have single resources (e.g. session). And this single resources may have nested resources like