moved logical space trim to getResource method
useless - see above