I have not heard of a ‘Atapirikara’ from Maha Brahma, but the legend says: “When Maitreya Buddha appears in the world, he will come to Kukkuta-padagiri (the Cook's-foot Mountain) – presently known as ‘Gurpa’, awaken Maha Kassapa, receive the Buddha’s robes from him, and then begin to announce the new dispensation. Maha Kassapa had been praised by the Buddha as being equal to him in many respects. He had been the only monk with whom the Buddha had exchanged robes.
Then both Master and disciple walked towards Rajagaha. On the way, the Buddha wanted to rest and went off the road to the root of a tree. Maha Kassapa then folded his double-robe fourfold and requested the Master to sit on it as this would bring him, Kassapa, much benefit for a long time. The Buddha sat down on Kassapa's robe and said: "Soft is your robe of patched cloth, Kassapa." Hearing this, Kassapa replied: "May the Blessed One, O Lord, accept this robe of patched cloth out of compassion for me!" — "But, Kassapa, can you wear these hempen, worn-out rag-robes of mine?" Full of joy, Kassapa said: "Certainly, Lord, I can wear the Blessed One's rough and worn-out rag-robes."
This exchange of robes can be regarded as a great distinction bestowed on Kassapa, an honor which was not shared by any other disciple. By that exchange of robes the Buddha may have intended to motivate Kassapa to observe some other "austere practices" (dhutanga) as for instance, wearing only the triple set of robes, going for alms and not omitting any houses on the almsround. This would be a mode of conduct in conformity with wearing the Buddha's patched rag-robes. Thus the commentator says. However, the Buddha's offer may have been a quite spontaneous act in response to his being offered Kassapa's robe.
It is this very same rough and worn-out rag-robe that the Blessed One first wore and then given to Maha Kassapa, and in turn he too wore till his Pari-Nibbhana, that Maitreya Buddha will come to accept. Some say that Maha Kassapa didn’t attain Pari-Nibbhana. Instead, he took Samadhi within the rock - that Maha Kassapa will offer the robes of the Gautama Buddha to the future Buddha when Maitryea Buddha descends to this realm in order to share the next basket of teachings with the world. Others say it is an “Adhisthana” (by the power of his will to make such an event happen) that he made at the time he attained Pari-Nibbhana.