|#00| refactoring getAttributeFromTable method, making it more generic..