You return an int and error here but never check it.  Maybe we could remove the return values from this method if it is never meant to be checked ?