'Get the folder from the DB.
:param  decoded_folder_id:       decoded folder id
:type   decoded_folder_id:       int
:param  check_manageable:        flag whether the check that user can manage item
:type   check_manageable:        bool
:param  check_accessible:        flag whether to check that user can access item
:type   check_accessible:        bool
:returns:   the requested folder
:rtype:     LibraryFolder
:raises: InconsistentDatabase, RequestParameterInvalidException, InternalServerError'

def get(self, trans, decoded_folder_id, check_manageable=False, check_accessible=True):

    try:
        folder = trans.sa_session.query(trans.app.model.LibraryFolder).filter((trans.app.model.LibraryFolder.table.c.id == decoded_folder_id)).one()
    except MultipleResultsFound:
        raise InconsistentDatabase('Multiple    folders    found    with    the    same    id.')
    except NoResultFound:
        raise RequestParameterInvalidException('No    folder    found    with    the    id    provided.')
    except Exception as e:
        raise InternalServerError(('Error    loading    from    the    database.' + str(e)))
    folder = self.secure(trans, folder, check_manageable, check_accessible)
    return folder
